Down-casts the cell value to specified type.
Namespace: com.mindfusion.spreadsheet
Package: com.mindfusion.spreadsheet
SyntaxJava
Copy Code
|
|---|
public <T> T valueAs ( |
A Class instance specifying the target type.
The cell value cast to specified type, or null if it's of a different type.
RemarksSyntax sugar for a slightly shorter type checking and casting.
ExampleJava
Copy Code
|
|---|
double total = 0; |
See Also